Auto merge of #1373 - alexcrichton:issue-785, r=wycats
authorbors <bors@rust-lang.org>
Fri, 6 Mar 2015 18:53:53 +0000 (18:53 +0000)
committerbors <bors@rust-lang.org>
Fri, 6 Mar 2015 18:53:53 +0000 (18:53 +0000)
commit4f9bf542466982085decc605402ee312f4328571
tree10ec62dc76dc5b16afb57caab4a888fefdcc6df0
parent79a93806ba167af27ed16988ff6d52a1e20a4584
parent14ff482dda0ba96bb64b3bc21df16e89ff21af9a
Auto merge of #1373 - alexcrichton:issue-785, r=wycats

This commit now funnels all output of Cargo by default to be in `target/debug`
instead of the bare `target` directory. This change is targeted at raising
awareness of whether a debug build is being used (as opposed to a release
build). It is also aimed at remedying a common scenario where `cargo build` is
followed by `cargo build --release` and then the debug binaries are run by
accident.

This does not yet explore the option of providing symlinks to the most recent
build, hence this commit is a breaking change due to the restructuring of the
layout of the output.

Note that this commit does **not** change the output location for documentation.
All output of `cargo doc` continues to be funneled into the `target/doc`
directory.

Closes #785
tests/test_cargo_compile.rs